#include <iostream>
#include <cstring>
using namespace std;

int main()
{
    string sentence[100];
    int count = 0;
    int index = 0;

    string sentence_[100];
    while (cin >> sentence[index])
    {
        index++;
    }
    for (int i = 0; i < index; i++)
    {
        bool found = false;
        for (int j = 0; j < i; j++)
        {
            if (sentence[i] == sentence_[j])
            {
                found = true;
                break;
            }
        }
        if (!found)
        {
            sentence_[count] = sentence[i];
            count++;
        }
    }

    cout << count << endl;
    return 0;
}